package cn.personal.study.aop;


import java.util.Arrays;
import java.util.List;

import org.aspectj.lang.JoinPoint;

/**
 * TODO 〈一句话功能简述〉
 *
 * @author duliurui
 * @since 1.2.0
 */
public class AddLogAop {

    public AddLogAop() {
    }

    public void addBeforeLog(JoinPoint joinPoint ) throws Throwable{
        List<Object> args = Arrays.asList(joinPoint.getArgs());
        System.out.println("AddLog-start");
        System.out.println("[" + joinPoint.getSignature().getName() + "]方法开始执行,该方法的参数列表是" + args);
        System.out.println("AddLog-end");
    }
}
